getJson() public static method

Gets Json String of Object Currency
public static getJson ( ) : string
return string
コード例 #1
0
 /**
  * Gets Json String of Object Capture
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","amount":' . AmountTest::getJson() . ',"is_final_capture":true,"state":"TestSample","reason_code":"TestSample","parent_payment":"TestSample","invoice_number":"TestSample","transaction_fee":' . CurrencyTest::getJson() . ',"create_time":"TestSample","update_time":"TestSample","links":' . LinksTest::getJson() . '}';
 }
コード例 #2
0
 /**
  * Gets Json String of Object PaymentSummary
  * @return string
  */
 public static function getJson()
 {
     return '{"paypal":' . CurrencyTest::getJson() . ',"other":' . CurrencyTest::getJson() . '}';
 }
コード例 #3
0
ファイル: FundingSourceTest.php プロジェクト: bontiv/intrateb
 /**
  * Gets Json String of Object FundingSource
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"funding_mode":"TestSample","funding_instrument_type":"TestSample","soft_descriptor":"TestSample","amount":' . CurrencyTest::getJson() . ',"legal_text":"TestSample","funding_detail":' . FundingDetailTest::getJson() . ',"additional_text":"TestSample","extends":' . FundingInstrumentTest::getJson() . ',"links":' . LinksTest::getJson() . '}';
 }
コード例 #4
0
ファイル: CustomAmountTest.php プロジェクト: Roc4rdho/app
 /**
  * Gets Json String of Object CustomAmount
  * @return string
  */
 public static function getJson()
 {
     return '{"label":"TestSample","amount":' . CurrencyTest::getJson() . '}';
 }
コード例 #5
0
 /**
  * Gets Json String of Object CreditFinancingOffered
  * @return string
  */
 public static function getJson()
 {
     return '{"total_cost":' . CurrencyTest::getJson() . ',"term":"12.34","monthly_payment":' . CurrencyTest::getJson() . ',"total_interest":' . CurrencyTest::getJson() . ',"payer_acceptance":true,"cart_amount_immutable":true}';
 }
コード例 #6
0
 /**
  * Gets Json String of Object PayoutItemDetails
  * @return string
  */
 public static function getJson()
 {
     return '{"payout_item_id":"TestSample","transaction_id":"TestSample","transaction_status":"TestSample","payout_item_fee":' . CurrencyTest::getJson() . ',"payout_batch_id":"TestSample","sender_batch_id":"TestSample","payout_item":' . PayoutItemTest::getJson() . ',"time_processed":"TestSample","errors":' . ErrorTest::getJson() . ',"links":' . LinksTest::getJson() . '}';
 }
コード例 #7
0
 /**
  * Gets Json String of Object ShippingCost
  * @return string
  */
 public static function getJson()
 {
     return '{"amount":' . CurrencyTest::getJson() . ',"tax":' . TaxTest::getJson() . '}';
 }
コード例 #8
0
 /**
  * Gets Json String of Object InvoiceItem
  * @return string
  */
 public static function getJson()
 {
     return '{"name":"TestSample","description":"TestSample","quantity":"12.34","unit_price":' . CurrencyTest::getJson() . ',"tax":' . TaxTest::getJson() . ',"date":"TestSample","discount":' . CostTest::getJson() . '}';
 }
コード例 #9
0
 /**
  * Gets Json String of Object InstallmentOption
  * @return string
  */
 public static function getJson()
 {
     return '{"term":123,"monthly_payment":' . CurrencyTest::getJson() . ',"discount_amount":' . CurrencyTest::getJson() . ',"discount_percentage":"TestSample"}';
 }
コード例 #10
0
ファイル: CostTest.php プロジェクト: Roc4rdho/app
 /**
  * Gets Json String of Object Cost
  * @return string
  */
 public static function getJson()
 {
     return '{"percent":"12.34","amount":' . CurrencyTest::getJson() . '}';
 }
コード例 #11
0
ファイル: SaleTest.php プロジェクト: Roc4rdho/app
 /**
  * Gets Json String of Object Sale
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","purchase_unit_reference_id":"TestSample","amount":' . AmountTest::getJson() . ',"payment_mode":"TestSample","state":"TestSample","reason_code":"TestSample","protection_eligibility":"TestSample","protection_eligibility_type":"TestSample","clearing_time":"TestSample","payment_hold_status":"TestSample","payment_hold_reasons":"TestSample","transaction_fee":' . CurrencyTest::getJson() . ',"receivable_amount":' . CurrencyTest::getJson() . ',"exchange_rate":"TestSample","fmf_details":' . FmfDetailsTest::getJson() . ',"receipt_id":"TestSample","parent_payment":"TestSample","processor_response":' . ProcessorResponseTest::getJson() . ',"billing_agreement_id":"TestSample","create_time":"TestSample","update_time":"TestSample","links":' . LinksTest::getJson() . '}';
 }
コード例 #12
0
ファイル: IncentiveTest.php プロジェクト: Roc4rdho/app
 /**
  * Gets Json String of Object Incentive
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","code":"TestSample","name":"TestSample","description":"TestSample","minimum_purchase_amount":' . CurrencyTest::getJson() . ',"logo_image_url":"http://www.google.com","expiry_date":"TestSample","type":"TestSample","terms":"TestSample"}';
 }
コード例 #13
0
 /**
  * Gets Json String of Object DetailedRefund
  * @return string
  */
 public static function getJson()
 {
     return '{"custom":"TestSample","invoice_number":"TestSample","refund_to_payer":' . CurrencyTest::getJson() . ',"refund_to_external_funding":' . ExternalFundingTest::getJson() . ',"refund_from_transaction_fee":' . CurrencyTest::getJson() . ',"refund_from_received_amount":' . CurrencyTest::getJson() . ',"total_refunded_amount":' . CurrencyTest::getJson() . '}';
 }
コード例 #14
0
 /**
  * Gets Json String of Object PaymentInstruction
  * @return string
  */
 public static function getJson()
 {
     return '{"reference_number":"TestSample","instruction_type":"TestSample","recipient_banking_instruction":' . RecipientBankingInstructionTest::getJson() . ',"amount":' . CurrencyTest::getJson() . ',"payment_due_date":"TestSample","note":"TestSample","links":' . LinksTest::getJson() . '}';
 }
コード例 #15
0
 /**
  * Gets Json String of Object MerchantPreferences
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","setup_fee":' . CurrencyTest::getJson() . ',"cancel_url":"http://www.google.com","return_url":"http://www.google.com","notify_url":"http://www.google.com","max_fail_attempts":"TestSample","auto_bill_amount":"TestSample","initial_fail_amount_action":"TestSample","accepted_payment_type":"TestSample","char_set":"TestSample"}';
 }
コード例 #16
0
 /**
  * Gets Json String of Object PaymentDefinition
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","name":"TestSample","type":"TestSample","frequency_interval":"TestSample","frequency":"TestSample","cycles":"TestSample","amount":' . CurrencyTest::getJson() . ',"charge_models":' . ChargeModelTest::getJson() . '}';
 }
コード例 #17
0
 /**
  * Gets Json String of Object RefundDetail
  * @return string
  */
 public static function getJson()
 {
     return '{"type":"TestSample","date":"TestSample","note":"TestSample","amount":' . CurrencyTest::getJson() . '}';
 }
コード例 #18
0
ファイル: PayoutItemTest.php プロジェクト: Roc4rdho/app
 /**
  * Gets Json String of Object PayoutItem
  * @return string
  */
 public static function getJson()
 {
     return '{"recipient_type":"TestSample","amount":' . CurrencyTest::getJson() . ',"note":"TestSample","receiver":"TestSample","sender_item_id":"TestSample"}';
 }
コード例 #19
0
ファイル: SearchTest.php プロジェクト: Roc4rdho/app
 /**
  * Gets Json String of Object Search
  * @return string
  */
 public static function getJson()
 {
     return '{"email":"TestSample","recipient_first_name":"TestSample","recipient_last_name":"TestSample","recipient_business_name":"TestSample","number":"TestSample","status":"TestSample","lower_total_amount":' . CurrencyTest::getJson() . ',"upper_total_amount":' . CurrencyTest::getJson() . ',"start_invoice_date":"TestSample","end_invoice_date":"TestSample","start_due_date":"TestSample","end_due_date":"TestSample","start_payment_date":"TestSample","end_payment_date":"TestSample","start_creation_date":"TestSample","end_creation_date":"TestSample","page":"12.34","page_size":"12.34","total_count_required":true}';
 }
コード例 #20
0
 /**
  * Gets Json String of Object TemplateData
  * @return string
  */
 public static function getJson()
 {
     return '{"merchant_info":' . MerchantInfoTest::getJson() . ',"billing_info":' . BillingInfoTest::getJson() . ',"shipping_info":' . ShippingInfoTest::getJson() . ',"items":' . InvoiceItemTest::getJson() . ',"payment_term":' . PaymentTermTest::getJson() . ',"reference":"TestSample","discount":' . CostTest::getJson() . ',"shipping_cost":' . ShippingCostTest::getJson() . ',"custom":' . CustomAmountTest::getJson() . ',"allow_partial_payment":true,"minimum_amount_due":' . CurrencyTest::getJson() . ',"tax_calculated_after_discount":true,"tax_inclusive":true,"terms":"TestSample","note":"TestSample","merchant_memo":"TestSample","logo_url":"http://www.google.com","total_amount":' . CurrencyTest::getJson() . ',"attachments":' . FileAttachmentTest::getJson() . '}';
 }
コード例 #21
0
 /**
  * Gets Json String of Object PayoutBatchHeader
  * @return string
  */
 public static function getJson()
 {
     return '{"payout_batch_id":"TestSample","batch_status":"TestSample","time_created":"TestSample","time_completed":"TestSample","sender_batch_header":' . PayoutSenderBatchHeaderTest::getJson() . ',"amount":' . CurrencyTest::getJson() . ',"fees":' . CurrencyTest::getJson() . ',"errors":' . ErrorTest::getJson() . ',"links":' . LinksTest::getJson() . '}';
 }
コード例 #22
0
 /**
  * Gets Json String of Object Tax
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","name":"TestSample","percent":"12.34","amount":' . CurrencyTest::getJson() . '}';
 }
コード例 #23
0
ファイル: TermsTest.php プロジェクト: paypal/rest-api-sdk-php
 /**
  * Gets Json String of Object Terms
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","type":"TestSample","max_billing_amount":' . CurrencyTest::getJson() . ',"occurrences":"TestSample","amount_range":' . CurrencyTest::getJson() . ',"buyer_editable":"TestSample"}';
 }
コード例 #24
0
 /**
  * Gets Json String of Object Invoice
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","number":"TestSample","uri":"TestSample","status":"TestSample","merchant_info":' . MerchantInfoTest::getJson() . ',"billing_info":' . BillingInfoTest::getJson() . ',"shipping_info":' . ShippingInfoTest::getJson() . ',"items":' . InvoiceItemTest::getJson() . ',"invoice_date":"TestSample","payment_term":' . PaymentTermTest::getJson() . ',"discount":' . CostTest::getJson() . ',"shipping_cost":' . ShippingCostTest::getJson() . ',"custom":' . CustomAmountTest::getJson() . ',"tax_calculated_after_discount":true,"tax_inclusive":true,"terms":"TestSample","note":"TestSample","merchant_memo":"TestSample","logo_url":"http://www.google.com","total_amount":' . CurrencyTest::getJson() . ',"payments":' . PaymentDetailTest::getJson() . ',"refunds":' . RefundDetailTest::getJson() . ',"metadata":' . MetadataTest::getJson() . ',"additional_data":"TestSample"}';
 }
コード例 #25
0
 /**
  * Gets Json String of Object AgreementTransaction
  * @return string
  */
 public static function getJson()
 {
     return '{"transaction_id":"TestSample","status":"TestSample","transaction_type":"TestSample","amount":' . CurrencyTest::getJson() . ',"fee_amount":' . CurrencyTest::getJson() . ',"net_amount":' . CurrencyTest::getJson() . ',"payer_email":"TestSample","payer_name":"TestSample","time_stamp":"TestSample","time_zone":"TestSample"}';
 }
コード例 #26
0
 /**
  * Gets Json String of Object InvoiceItem
  * @return string
  */
 public static function getJson()
 {
     return '{"name":"TestSample","description":"TestSample","quantity":"12.34","unit_price":' . CurrencyTest::getJson() . ',"tax":' . TaxTest::getJson() . ',"date":"TestSample","discount":' . CostTest::getJson() . ',"image_url":"http://www.google.com","unit_of_measure":"TestSample"}';
 }