increase 1.143.0 → 1.144.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,12 +7,6 @@ module Increase
7
7
  extend Increase::Internal::Type::RequestParameters::Converter
8
8
  include Increase::Internal::Type::RequestParameters
9
9
 
10
- # @!attribute amount
11
- # The transfer amount in USD cents. For Card Push transfers, must be positive.
12
- #
13
- # @return [Integer]
14
- required :amount, Integer
15
-
16
10
  # @!attribute business_application_identifier
17
11
  # The Business Application Identifier describes the type of transaction being
18
12
  # performed. Your program must be approved for the specified Business Application
@@ -71,6 +65,14 @@ module Increase
71
65
  # @return [String]
72
66
  required :merchant_state, String
73
67
 
68
+ # @!attribute presentment_amount
69
+ # The amount to transfer. The receiving bank will convert this to the cardholder's
70
+ # currency. The amount that is applied to your Increase account matches the
71
+ # currency of your account.
72
+ #
73
+ # @return [Increase::Models::CardPushTransferCreateParams::PresentmentAmount]
74
+ required :presentment_amount, -> { Increase::CardPushTransferCreateParams::PresentmentAmount }
75
+
74
76
  # @!attribute recipient_name
75
77
  # The name of the funds recipient.
76
78
  #
@@ -119,12 +121,10 @@ module Increase
119
121
  # @return [Boolean, nil]
120
122
  optional :require_approval, Increase::Internal::Type::Boolean
121
123
 
122
- # @!method initialize(amount:, business_application_identifier:, card_token_id:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, require_approval: nil, request_options: {})
124
+ # @!method initialize(business_application_identifier:, card_token_id:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, presentment_amount:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, require_approval: nil, request_options: {})
123
125
  # Some parameter documentations has been truncated, see
124
126
  # {Increase::Models::CardPushTransferCreateParams} for more details.
125
127
  #
126
- # @param amount [Integer] The transfer amount in USD cents. For Card Push transfers, must be positive.
127
- #
128
128
  # @param business_application_identifier [Symbol, Increase::Models::CardPushTransferCreateParams::BusinessApplicationIdentifier] The Business Application Identifier describes the type of transaction being perf
129
129
  #
130
130
  # @param card_token_id [String] The Increase identifier for the Card Token that represents the card number you'r
@@ -141,6 +141,8 @@ module Increase
141
141
  #
142
142
  # @param merchant_state [String] The state of the merchant (generally your business) sending the transfer.
143
143
  #
144
+ # @param presentment_amount [Increase::Models::CardPushTransferCreateParams::PresentmentAmount] The amount to transfer. The receiving bank will convert this to the cardholder's
145
+ #
144
146
  # @param recipient_name [String] The name of the funds recipient.
145
147
  #
146
148
  # @param sender_address_city [String] The city of the sender.
@@ -210,6 +212,527 @@ module Increase
210
212
  # @!method self.values
211
213
  # @return [Array<Symbol>]
212
214
  end
215
+
216
+ class PresentmentAmount < Increase::Internal::Type::BaseModel
217
+ # @!attribute currency
218
+ # The ISO 4217 currency code representing the currency of the amount.
219
+ #
220
+ # @return [Symbol, Increase::Models::CardPushTransferCreateParams::PresentmentAmount::Currency]
221
+ required :currency, enum: -> { Increase::CardPushTransferCreateParams::PresentmentAmount::Currency }
222
+
223
+ # @!attribute value
224
+ # The amount value as a decimal string in the currency's major unit. For example,
225
+ # for USD, '1234.56' represents 1234 dollars and 56 cents. For JPY, '1234'
226
+ # represents 1234 yen. A currency with minor units requires at least one decimal
227
+ # place and supports up to the number of decimal places defined by the currency's
228
+ # minor units. A currency without minor units does not support any decimal places.
229
+ #
230
+ # @return [String]
231
+ required :value, String
232
+
233
+ # @!method initialize(currency:, value:)
234
+ # Some parameter documentations has been truncated, see
235
+ # {Increase::Models::CardPushTransferCreateParams::PresentmentAmount} for more
236
+ # details.
237
+ #
238
+ # The amount to transfer. The receiving bank will convert this to the cardholder's
239
+ # currency. The amount that is applied to your Increase account matches the
240
+ # currency of your account.
241
+ #
242
+ # @param currency [Symbol, Increase::Models::CardPushTransferCreateParams::PresentmentAmount::Currency] The ISO 4217 currency code representing the currency of the amount.
243
+ #
244
+ # @param value [String] The amount value as a decimal string in the currency's major unit. For example,
245
+
246
+ # The ISO 4217 currency code representing the currency of the amount.
247
+ #
248
+ # @see Increase::Models::CardPushTransferCreateParams::PresentmentAmount#currency
249
+ module Currency
250
+ extend Increase::Internal::Type::Enum
251
+
252
+ # AFN
253
+ AFN = :AFN
254
+
255
+ # EUR
256
+ EUR = :EUR
257
+
258
+ # ALL
259
+ ALL = :ALL
260
+
261
+ # DZD
262
+ DZD = :DZD
263
+
264
+ # USD
265
+ USD = :USD
266
+
267
+ # AOA
268
+ AOA = :AOA
269
+
270
+ # ARS
271
+ ARS = :ARS
272
+
273
+ # AMD
274
+ AMD = :AMD
275
+
276
+ # AWG
277
+ AWG = :AWG
278
+
279
+ # AUD
280
+ AUD = :AUD
281
+
282
+ # AZN
283
+ AZN = :AZN
284
+
285
+ # BSD
286
+ BSD = :BSD
287
+
288
+ # BHD
289
+ BHD = :BHD
290
+
291
+ # BDT
292
+ BDT = :BDT
293
+
294
+ # BBD
295
+ BBD = :BBD
296
+
297
+ # BYN
298
+ BYN = :BYN
299
+
300
+ # BZD
301
+ BZD = :BZD
302
+
303
+ # BMD
304
+ BMD = :BMD
305
+
306
+ # INR
307
+ INR = :INR
308
+
309
+ # BTN
310
+ BTN = :BTN
311
+
312
+ # BOB
313
+ BOB = :BOB
314
+
315
+ # BOV
316
+ BOV = :BOV
317
+
318
+ # BAM
319
+ BAM = :BAM
320
+
321
+ # BWP
322
+ BWP = :BWP
323
+
324
+ # NOK
325
+ NOK = :NOK
326
+
327
+ # BRL
328
+ BRL = :BRL
329
+
330
+ # BND
331
+ BND = :BND
332
+
333
+ # BGN
334
+ BGN = :BGN
335
+
336
+ # BIF
337
+ BIF = :BIF
338
+
339
+ # CVE
340
+ CVE = :CVE
341
+
342
+ # KHR
343
+ KHR = :KHR
344
+
345
+ # CAD
346
+ CAD = :CAD
347
+
348
+ # KYD
349
+ KYD = :KYD
350
+
351
+ # CLP
352
+ CLP = :CLP
353
+
354
+ # CLF
355
+ CLF = :CLF
356
+
357
+ # CNY
358
+ CNY = :CNY
359
+
360
+ # COP
361
+ COP = :COP
362
+
363
+ # COU
364
+ COU = :COU
365
+
366
+ # KMF
367
+ KMF = :KMF
368
+
369
+ # CDF
370
+ CDF = :CDF
371
+
372
+ # NZD
373
+ NZD = :NZD
374
+
375
+ # CRC
376
+ CRC = :CRC
377
+
378
+ # CUP
379
+ CUP = :CUP
380
+
381
+ # CZK
382
+ CZK = :CZK
383
+
384
+ # DKK
385
+ DKK = :DKK
386
+
387
+ # DJF
388
+ DJF = :DJF
389
+
390
+ # DOP
391
+ DOP = :DOP
392
+
393
+ # EGP
394
+ EGP = :EGP
395
+
396
+ # SVC
397
+ SVC = :SVC
398
+
399
+ # ERN
400
+ ERN = :ERN
401
+
402
+ # SZL
403
+ SZL = :SZL
404
+
405
+ # ETB
406
+ ETB = :ETB
407
+
408
+ # FKP
409
+ FKP = :FKP
410
+
411
+ # FJD
412
+ FJD = :FJD
413
+
414
+ # GMD
415
+ GMD = :GMD
416
+
417
+ # GEL
418
+ GEL = :GEL
419
+
420
+ # GHS
421
+ GHS = :GHS
422
+
423
+ # GIP
424
+ GIP = :GIP
425
+
426
+ # GTQ
427
+ GTQ = :GTQ
428
+
429
+ # GBP
430
+ GBP = :GBP
431
+
432
+ # GNF
433
+ GNF = :GNF
434
+
435
+ # GYD
436
+ GYD = :GYD
437
+
438
+ # HTG
439
+ HTG = :HTG
440
+
441
+ # HNL
442
+ HNL = :HNL
443
+
444
+ # HKD
445
+ HKD = :HKD
446
+
447
+ # HUF
448
+ HUF = :HUF
449
+
450
+ # ISK
451
+ ISK = :ISK
452
+
453
+ # IDR
454
+ IDR = :IDR
455
+
456
+ # IRR
457
+ IRR = :IRR
458
+
459
+ # IQD
460
+ IQD = :IQD
461
+
462
+ # ILS
463
+ ILS = :ILS
464
+
465
+ # JMD
466
+ JMD = :JMD
467
+
468
+ # JPY
469
+ JPY = :JPY
470
+
471
+ # JOD
472
+ JOD = :JOD
473
+
474
+ # KZT
475
+ KZT = :KZT
476
+
477
+ # KES
478
+ KES = :KES
479
+
480
+ # KPW
481
+ KPW = :KPW
482
+
483
+ # KRW
484
+ KRW = :KRW
485
+
486
+ # KWD
487
+ KWD = :KWD
488
+
489
+ # KGS
490
+ KGS = :KGS
491
+
492
+ # LAK
493
+ LAK = :LAK
494
+
495
+ # LBP
496
+ LBP = :LBP
497
+
498
+ # LSL
499
+ LSL = :LSL
500
+
501
+ # ZAR
502
+ ZAR = :ZAR
503
+
504
+ # LRD
505
+ LRD = :LRD
506
+
507
+ # LYD
508
+ LYD = :LYD
509
+
510
+ # CHF
511
+ CHF = :CHF
512
+
513
+ # MOP
514
+ MOP = :MOP
515
+
516
+ # MKD
517
+ MKD = :MKD
518
+
519
+ # MGA
520
+ MGA = :MGA
521
+
522
+ # MWK
523
+ MWK = :MWK
524
+
525
+ # MYR
526
+ MYR = :MYR
527
+
528
+ # MVR
529
+ MVR = :MVR
530
+
531
+ # MRU
532
+ MRU = :MRU
533
+
534
+ # MUR
535
+ MUR = :MUR
536
+
537
+ # MXN
538
+ MXN = :MXN
539
+
540
+ # MXV
541
+ MXV = :MXV
542
+
543
+ # MDL
544
+ MDL = :MDL
545
+
546
+ # MNT
547
+ MNT = :MNT
548
+
549
+ # MAD
550
+ MAD = :MAD
551
+
552
+ # MZN
553
+ MZN = :MZN
554
+
555
+ # MMK
556
+ MMK = :MMK
557
+
558
+ # NAD
559
+ NAD = :NAD
560
+
561
+ # NPR
562
+ NPR = :NPR
563
+
564
+ # NIO
565
+ NIO = :NIO
566
+
567
+ # NGN
568
+ NGN = :NGN
569
+
570
+ # OMR
571
+ OMR = :OMR
572
+
573
+ # PKR
574
+ PKR = :PKR
575
+
576
+ # PAB
577
+ PAB = :PAB
578
+
579
+ # PGK
580
+ PGK = :PGK
581
+
582
+ # PYG
583
+ PYG = :PYG
584
+
585
+ # PEN
586
+ PEN = :PEN
587
+
588
+ # PHP
589
+ PHP = :PHP
590
+
591
+ # PLN
592
+ PLN = :PLN
593
+
594
+ # QAR
595
+ QAR = :QAR
596
+
597
+ # RON
598
+ RON = :RON
599
+
600
+ # RUB
601
+ RUB = :RUB
602
+
603
+ # RWF
604
+ RWF = :RWF
605
+
606
+ # SHP
607
+ SHP = :SHP
608
+
609
+ # WST
610
+ WST = :WST
611
+
612
+ # STN
613
+ STN = :STN
614
+
615
+ # SAR
616
+ SAR = :SAR
617
+
618
+ # RSD
619
+ RSD = :RSD
620
+
621
+ # SCR
622
+ SCR = :SCR
623
+
624
+ # SLE
625
+ SLE = :SLE
626
+
627
+ # SGD
628
+ SGD = :SGD
629
+
630
+ # SBD
631
+ SBD = :SBD
632
+
633
+ # SOS
634
+ SOS = :SOS
635
+
636
+ # SSP
637
+ SSP = :SSP
638
+
639
+ # LKR
640
+ LKR = :LKR
641
+
642
+ # SDG
643
+ SDG = :SDG
644
+
645
+ # SRD
646
+ SRD = :SRD
647
+
648
+ # SEK
649
+ SEK = :SEK
650
+
651
+ # CHE
652
+ CHE = :CHE
653
+
654
+ # CHW
655
+ CHW = :CHW
656
+
657
+ # SYP
658
+ SYP = :SYP
659
+
660
+ # TWD
661
+ TWD = :TWD
662
+
663
+ # TJS
664
+ TJS = :TJS
665
+
666
+ # TZS
667
+ TZS = :TZS
668
+
669
+ # THB
670
+ THB = :THB
671
+
672
+ # TOP
673
+ TOP = :TOP
674
+
675
+ # TTD
676
+ TTD = :TTD
677
+
678
+ # TND
679
+ TND = :TND
680
+
681
+ # TRY
682
+ TRY = :TRY
683
+
684
+ # TMT
685
+ TMT = :TMT
686
+
687
+ # UGX
688
+ UGX = :UGX
689
+
690
+ # UAH
691
+ UAH = :UAH
692
+
693
+ # AED
694
+ AED = :AED
695
+
696
+ # USN
697
+ USN = :USN
698
+
699
+ # UYU
700
+ UYU = :UYU
701
+
702
+ # UYI
703
+ UYI = :UYI
704
+
705
+ # UYW
706
+ UYW = :UYW
707
+
708
+ # UZS
709
+ UZS = :UZS
710
+
711
+ # VUV
712
+ VUV = :VUV
713
+
714
+ # VES
715
+ VES = :VES
716
+
717
+ # VED
718
+ VED = :VED
719
+
720
+ # VND
721
+ VND = :VND
722
+
723
+ # YER
724
+ YER = :YER
725
+
726
+ # ZMW
727
+ ZMW = :ZMW
728
+
729
+ # ZWG
730
+ ZWG = :ZWG
731
+
732
+ # @!method self.values
733
+ # @return [Array<Symbol>]
734
+ end
735
+ end
213
736
  end
214
737
  end
215
738
  end
@@ -2421,11 +2421,11 @@ module Increase
2421
2421
 
2422
2422
  # @see Increase::Models::Transaction::Source#card_push_transfer_acceptance
2423
2423
  class CardPushTransferAcceptance < Increase::Internal::Type::BaseModel
2424
- # @!attribute amount
2424
+ # @!attribute settlement_amount
2425
2425
  # The transfer amount in USD cents.
2426
2426
  #
2427
2427
  # @return [Integer]
2428
- required :amount, Integer
2428
+ required :settlement_amount, Integer
2429
2429
 
2430
2430
  # @!attribute transfer_id
2431
2431
  # The identifier of the Card Push Transfer that led to this Transaction.
@@ -2433,13 +2433,13 @@ module Increase
2433
2433
  # @return [String]
2434
2434
  required :transfer_id, String
2435
2435
 
2436
- # @!method initialize(amount:, transfer_id:)
2436
+ # @!method initialize(settlement_amount:, transfer_id:)
2437
2437
  # A Card Push Transfer Acceptance object. This field will be present in the JSON
2438
2438
  # response if and only if `category` is equal to `card_push_transfer_acceptance`.
2439
2439
  # A Card Push Transfer Acceptance is created when an Outbound Card Push Transfer
2440
2440
  # sent from Increase is accepted by the receiving bank.
2441
2441
  #
2442
- # @param amount [Integer] The transfer amount in USD cents.
2442
+ # @param settlement_amount [Integer] The transfer amount in USD cents.
2443
2443
  #
2444
2444
  # @param transfer_id [String] The identifier of the Card Push Transfer that led to this Transaction.
2445
2445
  end
@@ -8,9 +8,7 @@ module Increase
8
8
  #
9
9
  # Create a Card Push Transfer
10
10
  #
11
- # @overload create(amount:, business_application_identifier:, card_token_id:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, require_approval: nil, request_options: {})
12
- #
13
- # @param amount [Integer] The transfer amount in USD cents. For Card Push transfers, must be positive.
11
+ # @overload create(business_application_identifier:, card_token_id:, merchant_category_code:, merchant_city_name:, merchant_name:, merchant_name_prefix:, merchant_postal_code:, merchant_state:, presentment_amount:, recipient_name:, sender_address_city:, sender_address_line1:, sender_address_postal_code:, sender_address_state:, sender_name:, source_account_number_id:, require_approval: nil, request_options: {})
14
12
  #
15
13
  # @param business_application_identifier [Symbol, Increase::Models::CardPushTransferCreateParams::BusinessApplicationIdentifier] The Business Application Identifier describes the type of transaction being perf
16
14
  #
@@ -28,6 +26,8 @@ module Increase
28
26
  #
29
27
  # @param merchant_state [String] The state of the merchant (generally your business) sending the transfer.
30
28
  #
29
+ # @param presentment_amount [Increase::Models::CardPushTransferCreateParams::PresentmentAmount] The amount to transfer. The receiving bank will convert this to the cardholder's
30
+ #
31
31
  # @param recipient_name [String] The name of the funds recipient.
32
32
  #
33
33
  # @param sender_address_city [String] The city of the sender.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.143.0"
4
+ VERSION = "1.144.0"
5
5
  end